public class test8 {
    public static void main(String[] args) {
    double area1 = Compare(2,3);
    double area2 = Compare(3,4);
    if(area1 > area2){
        System.out.println("第一个面积大");
    }else if(area1 < area2){
        System.out.println("第二个面积大");
    }else{
        System.out.println("两个面积一样大");
    }
    }
    public static double Compare(double num1,double num2){
        double area = num1*num2;
        return area;
    }
}
